/*
 * @Author: xuchao 
 * @Date: 2018-06-14 14:21:24 
 * @Last Modified by: xuchao
 * @Last Modified time: 2018-06-14 14:35:41
 */
import React, { Component } from 'react';

export default class Rate extends Component {
    changeRate(length){
        const em = [];
        for(let i=0;i<length;i++){
            em.push(<em></em>);
        }
        return em;
    }

    render(){
        const { value } = this.props;
        return(
            <div className="rate">
                {
                    this.changeRate(value)
                }
            </div>
        )
    }
}